package com.pinda.feign;

import com.pinda.work.vo.TransportOrderQueryView;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

import java.util.List;

@FeignClient(value = "aggregation-service",path = "/pd-transport-order",url = "http://localhost:2001")
public interface PdTransportOrderFeignClient {

    @GetMapping("/querypagetransportorderview/{id}")
     List<TransportOrderQueryView> querypagetransportorderviewController(@PathVariable("id") String id);

    /**
     * 快递员收件完成往运单表添加新的运单
     * @param orderId
     * @return
     */
    @GetMapping("/savePdTransportOrder/{orderId}")
    Boolean savePdTransportOrder(@PathVariable("orderId") String orderId);
}
